package edu.example.paperselection;

import java.util.*;

public class StudentCountVisitor implements PaperSelectionVisitor {
    private int studentCount;

    @Override
    public void visit(PaperSelection selection) {
        Set<Student> students = new HashSet<>(selection.getSelections().values());
        studentCount = students.size();
    }

    public int getStudentCount() {
        return studentCount;
    }
}